package com.guofen.dao;

import com.guofen.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserMapper {
    boolean deleteByPrimaryKey(Integer id);

    boolean insert(User record);

    boolean insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    boolean updateByPrimaryKeySelective(User record);

    boolean updateByPrimaryKey(User record);

    List<User> selectByName(String name);

    int selectByNameUnique(String name);

    int selectByNameUniqueExpectId(Map<String, Object> data);

    User selectByNamePassword(Map<String, Object> data);
}
